package com.chancingpack.dal.dao.mybatis;

import com.chancingpack.dal.dao.MyProductDao;
import com.chancingpack.dal.service.SgbasprodpictureMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by lenovo on 2017/7/20.
 */
@Repository
public class MyProductDaoImpl implements MyProductDao {

    @Autowired
    private SgbasprodpictureMapper sgbasprodpictureMapper;

    /**
     * 查询所有产品信息
     * @return
     */
    public List<Map<String, Object>> selectPictures(Map<String,Object> map) {
        return sgbasprodpictureMapper.selectPictures(map);
    }

    public List<Map<String, Object>> selectBycustId(Map<String, Object> map) {
        return sgbasprodpictureMapper.selectBycustId(map);
    }

}
